package com.lx.oms.controller.manager;

import java.math.BigInteger;
import java.util.List;

import com.lx.oms.common.entity.Query;
import com.lx.oms.controller.entity.SysCategoryEntity;

/**
 * 类别
 *
 * @author houzhong

 */
public interface SysCategoryManager {

	List<SysCategoryEntity> listCategoryByParentId(Query query);
	
	int saveCategory(SysCategoryEntity category);
	
	SysCategoryEntity getCategoryById(BigInteger id);
	
	int updateCategory(SysCategoryEntity category);
	
	int batchRemoveCategory(String[] id);
	
	boolean hasChildren(String[] id);
	
	SysCategoryEntity getCategoryByName(Query query);
	
	List<SysCategoryEntity> getCategoryByParentId(Query query);
	
	
	
}
